package com.example.javalib.array;

public class Increase {
    public static void main(String[] args) {
        int sum=0;
        int temp=0;
        for (int i = 0; i <= 9; i++) {

            temp=sum+i;
            sum=temp;

        }
        System.out.println(sum);



//        addArray();
    }

    public static void addArray() {
        int[] array={1,2,3,4,6};
        int sum=0;
        for (int i = 0; i < array.length; i++) {
            sum=sum+array[i];
        }
        System.out.println(sum);
    }
}
